package top.infopub.model.hr;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import top.infopub.generic.GenericEntity;

import java.util.Date;

/** 人员就职(HR_STAFF_OFFICE) **/
public class StaffOffice extends GenericEntity  {

	private static final long serialVersionUID = 1L;
	
	/*PK*/
	private String id;
	/*PK*/
	public String getId(){
		return id;
	}
	
	public void setId(String id){
		 this.id = id;
	}
	
	/* 添加人 */
	private String addBy;
	
	public String getAddBy(){
		return addBy;
	}
	
	public void setAddBy(String addBy){
		this.addBy = addBy;
	}
	/* 添加时间 */
	private Date addTime;
	
	public Date getAddTime(){
		return addTime;
	}
	
	public void setAddTime(Date addTime){
		this.addTime = addTime;
	}
	/* 部门ID */
	private String deptId;
	
	public String getDeptId(){
		return deptId;
	}
	
	public void setDeptId(String deptId){
		this.deptId = deptId;
	}
	/* 结束时间 为空时代表一直生效 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date endTime;
	
	public Date getEndTime(){
		return endTime;
	}
	
	public void setEndTime(Date endTime){
		this.endTime = endTime;
	}
	/* 备注 */
	private String memo;
	
	public String getMemo(){
		return memo;
	}
	
	public void setMemo(String memo){
		this.memo = memo;
	}
	/* 公司ID */
	private String orgId;
	
	public String getOrgId(){
		return orgId;
	}
	
	public void setOrgId(String orgId){
		this.orgId = orgId;
	}
	/* 岗位ID */
	private String postId;
	
	public String getPostId(){
		return postId;
	}
	
	public void setPostId(String postId){
		this.postId = postId;
	}
	/* 排序 */
	private Integer showIdx;
	
	public Integer getShowIdx(){
		return showIdx;
	}
	
	public void setShowIdx(Integer showIdx){
		this.showIdx = showIdx;
	}
	/* 人员ID */
	private String staffId;
	
	public String getStaffId(){
		return staffId;
	}
	
	public void setStaffId(String staffId){
		this.staffId = staffId;
	}
	/* 开始时间 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date startTime;
	
	public Date getStartTime(){
		return startTime;
	}
	
	public void setStartTime(Date startTime){
		this.startTime = startTime;
	}
	/* 最后修改人 */
	private String uptBy;
	
	public String getUptBy(){
		return uptBy;
	}
	
	public void setUptBy(String uptBy){
		this.uptBy = uptBy;
	}
	/* 最后修改时间 */
	private Date uptTime;
	
	public Date getUptTime(){
		return uptTime;
	}
	
	public void setUptTime(Date uptTime){
		this.uptTime = uptTime;
	}
	
}